package com.qooco.watersystem.extensions.client_handlers;

import com.qooco.watersystem.extensions.CocktailExtension;
import com.smartfoxserver.v2.entities.User;
import com.smartfoxserver.v2.entities.data.ISFSObject;
import com.smartfoxserver.v2.extensions.BaseClientRequestHandler;

public class StartWaterHandler extends BaseClientRequestHandler {

	@Override
	public void handleClientRequest(User arg0, ISFSObject arg1) 
	{
		CocktailExtension gameExt = (CocktailExtension) getParentExtension();
		for (User user : gameExt.getParentRoom().getUserList()) 
		{
			if (user.getId() != arg0.getId())
			{
				send("start", arg1 , user);
			}
		}
	}

}
